package com.yuntongxun.ecdemo.voicechat.ui.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.TextView;

import com.loopj.android.http.RequestParams;
import com.ta.utdid2.android.utils.SystemUtils;
import com.yuntongxun.ecdemo.R;
import com.yuntongxun.ecdemo.voicechat.api.ApiConstants;
import com.yuntongxun.ecdemo.voicechat.presenter.impl.CommonRequestPresenterImpl;
import com.yuntongxun.ecdemo.voicechat.util.CommonUtils;
import com.yuntongxun.ecdemo.voicechat.util.SysUtil;
import com.yuntongxun.ecdemo.voicechat.util.iview.ICommonViewUi;

import org.json.JSONObject;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * 关于
 *
 * @author li_zhuonan
 * @version 1.0
 * @since 2016/11/22
 */

public class AboutActivity extends BaseChatActivity implements ICommonViewUi {


    @InjectView(R.id.version_code_tv)
    TextView versionCodeTv;

    private CommonRequestPresenterImpl commonRequestPresenter;

    @Override
    protected boolean isBindEventBusHere() {
        return false;
    }

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_voicechat_about;
    }

    @Override
    protected void initViewsAndEvents() {
        setTitle("About");

        commonRequestPresenter = new CommonRequestPresenterImpl(mContext, this);

        versionCodeTv.setText("V" + SysUtil.getVerName(mContext));
    }

    @OnClick(R.id.introductions_layout)
    public void clickIntroduction(){

        startActivity(new Intent(mContext, IntroductionsActivity.class));
    }

    @Override
    public void toRequest(int eventTag) {
    }

    @Override
    public void getRequestData(int eventTag, String result) {
    }

    @Override
    public void onRequestSuccessException(int eventTag, String msg) {
        showToastShort(msg);
    }

    @Override
    public void onRequestFailureException(int eventTag, String msg) {
        showToastShort(msg);
    }

    @Override
    public void isRequesting(int eventTag, boolean status) {
    }
}
